<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>       

        <!--Etiquetas del sistema-->
        <f:loadBundle basename="system.general.label_#{logged.loggedIdiom}" var="systemLabel" />

        <!--Label para obtener el titulo-->
        <f:loadBundle basename="#{logged.packageName}.general.label_#{logged.loggedIdiom}" var="moduleLabel" />
        <f:loadBundle basename="#{logged.packageName}.autocomplete.label_#{logged.loggedIdiom}" var="autocompleteLabel" />

        <!--Título del sistema en la pestaña del navegador-->
        <title><h:outputText value="#{systemLabel.name}"/></title>

        <!--Estilos de la maquetacion-->
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="/coreApp/faces/resource/css/reset.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="/coreApp/faces/resource/css/coreEstiloGeneral.css" rel="stylesheet" type="text/css" media="screen" />

        <!--Script del fancybox o ventana emergente-->
        <script type="text/javascript" src="../../../resource/js/jquery.fancybox.js" />
        <link rel="stylesheet" type="text/css" href="../../../resource/css/fancybox.css" />
        <script>
            $(document).ready(function() {
                $(".find").fancybox({
                    type: 'ajax'
                });
            });
        </script>

        <ui:insert name="head">

        </ui:insert>

    </h:head>

    <h:body>

        <div id="bodyNavigation">
            <div class="wrapperMenu cf">
                <!--menu de navegacion principal-->
                <ui:include src="/page/menu/main.xhtml"/>

                <!--menu de usuario-->
                <ui:include src="/page/menu/setting.xhtml"/>
            </div>
        </div>

        <div id="bodyHead">
            <div class="wrapper cf">
                <h1 title="Core">
                    <h:outputText id="link_homeLogo" value="#{systemLabel.name}"/>
                </h1>
            </div>
        </div>

        <div id="bodySubHead">
            <div class="wrapper cf">
                <div class="subHeadSegment">
                    <h2>#{moduleLabel.module}</h2>
                    <h3 id="personaTitulo"><h:outputText id="personaActual" value="#{logged.masterName}"/></h3>
                </div>
                <div class="subHeadSegment">
                    <ui:insert name="subHeadContent">
                        <ui:include src="/page/#{logged.menuFolder}/autocomplete/main.xhtml"/>
                    </ui:insert>
                </div>	
            </div>
        </div>

        <div id="bodyContent">
            <div class="wrapper cf">
                <div id="subMenu">
                    <ui:insert name="subMenu">
                        <c:set var="pathMenu" value="/page/#{logged.menuFolder}/menu/main.xhtml" />
                        <ui:include src="#{pathMenu}"/>
                    </ui:insert>
                </div>

                <h:panelGroup id="content" layout="block">
                    <h3>#{label.title1}</h3>
                    <ui:insert name="content">

                    </ui:insert>
                </h:panelGroup>

                <div id="slideHelper">
                    <ui:insert name="slideHelper">

                    </ui:insert>
                </div>
            </div>
        </div>

        <div id="bodyFoot">
            <div class="wrapper cf">
                <h2>Core v 1.0<br />
                    Todos los Derechos Reservados por  &copy; UTP 2012</h2>
            </div>
        </div> 
    </h:body>
</html>
